package sit.engreal.leetcode.problems300;

/**
 * <a href="https://leetcode.cn/problems/power-of-two/">231. 2 的幂</a>
 */
public class LeetCode231 {
    public boolean isPowerOfTwo(int n) {
        return (n > 0) && (n & -n) == n;
    }
}
